﻿@model IEnumerable<MvcApplication.Models.PhongBanModel>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            ten_phong_ban
        </th>
        <th>
            mo_ta_phong_ban
        </th>
        <th>
            id_nhan_su
        </th>
        <th>
            deleted
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ten_phong_ban)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.mo_ta_phong_ban)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.id_nhan_su)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.deleted)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.id_phong_ban }) |
            @Html.ActionLink("Details", "Details", new { id=item.id_phong_ban }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.id_phong_ban })
        </td>
    </tr>
}

</table>
